package com.dk.mydemo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dk.mydemo.dao.DemoDao;
import com.dk.mydemo.modal.mybatis.Demo;
import com.dk.mydemo.service.DemoService;

@Service
public class DemoServiceImpl implements DemoService {

	@Autowired
	private DemoDao demoDao;
	
	 @Override
	public Demo queryById(int id) {
		return demoDao.queryById(id);
	}

	 @Override
	public void save(Demo d) {
		demoDao.save(d);
	}

}
